-- GENERATED SPELL FOR [Overseer Korgan] --


function spell0_26921(pUnit, Event) --@Call Lightning,n/a--
pUnit:FullCastSpellOnTarget(32018,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26921', 613, 1)
end

function spell1_26921(pUnit, Event) --@Revitalizing Rune,n/a--
pUnit:FullCastSpellOnTarget(52714,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26921', 5000, 1)
end

function Sorts_26921(pUnit, Event)
local choix_sorts_26921 = math.random(0, 1)
if choix_sorts_26921 == 0 then
pUnit:RegisterEvent('spell0_26921', 1, 1)
end
if choix_sorts_26921 == 1 then
pUnit:RegisterEvent('spell1_26921', 1, 1)
end
end

function mob26921_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26921', math.random(1500, 3000), 1)
end

function mob26921_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26921_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26921_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26921, 1, 'mob26921_Action')
RegisterUnitEvent(26921, 2, 'mob26921_Leave')
RegisterUnitEvent(26921, 3, 'mob26921_Kill')
RegisterUnitEvent(26921, 4, 'mob26921_Die')
